<template>
  <div id="app">
    <router-view></router-view>
    <nav-bar v-if="!$route.meta.hideNav"></nav-bar>
  </div>
</template>

<script>
import NavBar from '@/components/NavBar.vue'
import {mapActions} from 'vuex'
export default {
  data(){
    return{
      
    }
  },
  created(){
    this.getgeolocation();
    this.getcities();
  },
  methods:{
    ...mapActions(['getgeolocation','getcities']),
  },
  watch:{
    // citys(){
    //   this.cts.forEach(el => {
    //     if(el.nm == this.city){
    //       this.cityid=el.id;
    //     }
    //   });
    // }
  },
  components:{
    NavBar
  }
}
</script>

<style lang="less">

</style>
